<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="pragma" content="no-cache">
    <title>添加助管信息</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <META HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link href="css/style.css" rel="stylesheet">
    <style type="text/css">
    #myModal-add .modal-dialog {
        width: 85%
    }
    </style>
</head>

<body>
    <div id="zhuguan-data" class="">
        <div class="panel panel-default">
            <div class="panel-heading">助管信息管理</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-sm-10">
                        <div class="col-sm-3">
                            <input v-model="query.stuID" type="text" class="form-control" placeholder="学号">
                        </div>
                        <div class="col-sm-3">
                            <input v-model="query.name" type="text" class="form-control" placeholder="姓名">
                        </div>
                        <div class="col-sm-3">
                            <span>银行：</span>
                            <select v-model="query.bankNo" class="form-control form-select" name="bank">
                                <option v-bind:value="bank.bankNo" v-for="bank in banks">{{ bank.bankName }}</option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <span>部门：</span>
                            <select v-model="query.deptId" class="form-control form-select" name="dept">
                                <option v-bind:value="dept.deptId" v-for="dept in depts">{{ dept.deptName }}</option>
                                <option v-bind:value="dept.deptId"></option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-2">
                        <button class="btn btn-default" v-on:click="queryData('all')">查询</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">助管信息列表</div>
            <div class="panel-body">
                <table class="table table-bordered mt-10">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>部门编号</th>
                        <th>部门名称</th>
                        <th>科室名称</th>
                        <th>联系电话</th>
                        <th>银行名称</th>
                        <th>操作</th>
                    </tr>
                    <tr v-for="item in items" track-by="$index">
                        <td>{{item.stuId}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.deptId}}</td>
                        <td>{{item.deptName}}</td>
                        <td>{{item.creditNum}}</td>
                        <td>{{item.tel}}</td>
                        <td>{{item.bankName}}</td>
                        <td>
                            <button class="btn btn-default" data-toggle="modal" data-target="#myModal-delete" v-on:click="deleteZG(item.stuId,item.name)">删除</button>
                            <button class="btn btn-default" data-toggle="modal" data-target="#myModal-modify" v-on:click="editZG(item.stuId,item.name)">修改</button>
                        </td>
                    </tr>
                </table>
                <div class="row">
                    <div class="col-lg-3">
                        <div class="input-group">
                            <button class="btn btn-default" data-toggle="modal" data-target="#myModal-add">添加</button>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="input-group">
                            <input id="file" type="file" class="form-control" v-model="Upfile" name="uploadExcel">
                            <span class="input-group-btn">
        <button class="btn btn-secondary" type="button" v-on:click="upload()">上传文件</button>
      </span>
                        </div>
                    </div>
                    <div class="col-lg-3 mt-10">
                        <div class="input-group">
                            <a :href="url.downloadMB">点击下载模版</a>
                        </div>
                    </div>
                </div>
                <nav>
                    <ul class="pagination">
                        <li v-bind:class="{'disabled': page.disabled, 'active': page.active }" v-for="page in pages"><a v-on:click="submitPage(page.content)">{{page.content}}</a></li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- 删除模态框（Modal） -->
        <div class="modal fade" id="myModal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">删除助管信息</h4>
                    </div>
                    <div class="modal-body">
                        <p>确认删除学生：{{deleteItem.name}}</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="confirmDel()" class="btn btn-primary">提交更改</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
        <!-- 修改模态框（Modal） -->
        <div class="modal fade" id="myModal-modify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">编辑助管信息</h4>
                    </div>
                    <!--  <div class="panel panel-default">
 -->
                    <div class="form-horizontal mt-10">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                            <div class="col-sm-8">
                                <!--  <input class="form-control" v-model="stu_edit.name">
 -->
                                <p class="form-control-static">{{stu_edit.name}}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">学号</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.stuId">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">部门</label>
                            <div class="col-sm-8">
                                <select v-model="stu_edit.deptId" class="form-control form-select" name="dept">
                                    <option v-bind:value="dept.deptId" v-for="dept in depts">{{ dept.deptName }}</option>
                                    <option v-bind:value="dept.deptId"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">银行</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.bankName">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">银行帐号</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.bankNo">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">电话号码</label>
                            <div class="col-sm-8">
                                <input class="form-control" v-model="stu_edit.telNo">
                            </div>
                        </div>
                    </div>
                    <!-- </div> -->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="confirmEdit()" class="btn btn-primary">提交更改</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
        <!-- 添加模态框 -->
        <div class="modal fade" id="myModal-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">添加助管信息</h4>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">查找学生</div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-sm-10">
                                    <div class="col-sm-2">
                                        <input v-model="stu_query.stuID" type="text" class="form-control" placeholder="学号">
                                    </div>
                                    <div class="col-sm-2">
                                        <input v-model="stu_query.stuName" type="text" class="form-control" placeholder="姓名">
                                    </div>
                                    <div class="col-sm-2">
                                        <input v-model="stu_query.dsName" type="text" class="form-control" placeholder="导师代码">
                                    </div>
                                    <div class="col-sm-2">
                                        <input v-model="stu_query.dsId" type="text" class="form-control" placeholder="导师编号">
                                    </div>
                                    <div class="col-sm-2">
                                        <span>部门：</span>
                                        <select v-model="stu_query.deptId" class="form-control form-select" name="dept">
                                            <option v-bind:value="dept.deptId" v-for="dept in depts">{{ dept.deptName }}</option>
                                            <option v-bind:value="dept.deptId">全部</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <button class="btn btn-default" v-on:click="queryStuData('all')">查询</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">学生信息列表</div>
                        <div class="panel-body">
                            <table class="table table-bordered mt-10">
                                <tr>
                                    <th>选择</th>
                                    <th>学号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>院系编号</th>
                                    <th>院系名称</th>
                                    <th>录取专业代码</th>
                                    <th>录取专业名称</th>
                                    <th>录取类别码</th>
                                    <th>导师代码</th>
                                    <th>导师名称</th>
                                    <th>创建时间</th>
                                    <th>修改时间</th>
                                </tr>
                                <tr v-for="item in stu_items" track-by="$index">
                                    <td>
                                        <input type="checkbox" v-model="check_stuId" v-bind:value="item.stuId">
                                    </td>
                                    <td>{{item.stuId}}</td>
                                    <td>{{item.stuName}}</td>
                                    <td>{{item.gender}}</td>
                                    <td>{{item.deptId}}</td>
                                    <td>{{item.deptName}}</td>
                                    <td>{{item.lqzyId}}</td>
                                    <td>{{item.lqzyName}}</td>
                                    <td>{{item.lqlb}}</td>
                                    <td>{{item.dsId}}</td>
                                    <td>{{item.dsName}}</td>
                                    <td>{{item.time}}</td>
                                    <td>{{item.modify}}</td>
                                </tr>
                            </table>
                            <nav>
                                <ul class="pagination">
                                    <li v-bind:class="{'disabled': page.disabled, 'active': page.active }" v-for="page in stu_pages"><a v-on:click="submitStuPage(page.content)">{{page.content}}</a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" v-on:click="addZhuguan" class="btn btn-primary">提交</button>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal -->
        </div>
    </div>
</body>
<script type="text/javascript" src="js/dist/jquery-2.2.4.js"></script>
<script type="text/javascript" src="js/dist/bootstrap.min.js"></script>
<script type="text/javascript" src="js/dist/vue.js"></script>
<script type="text/javascript" data-main="js/zhuguan.js" src="js/dist/require.js"></script>
<!-- <script type="text/javascript" src="js/zhuguan.js"></script> -->

</html>
